home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13294 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1002 b 

  1. Path: Dortmund.Germany.EU.net!aisdo!aiscube!arndt
  2. From: arndt@aiscube.ais-gmbh.de (Arndt Schoenewald)
  3. Newsgroups: comp.lang.c++,gnu.g++.help,comp.unix.solaris
  4. Subject: Re: dealing without bool type
  5. Followup-To: comp.lang.c++,gnu.g++.help,comp.unix.solaris
  6. Date: 24 Mar 1996 20:19:19 GMT
  7. Organization: AIS GmbH, Universitaetsstr. 140, D-44799 Bochum, Germany
  8. Distribution: inet
  9. Message-ID: <4j4ao7$7t1@aiscube.ais-gmbh.de>
  10. References: <4j23nq$po7@shellx.best.com>
  11. NNTP-Posting-Host: aiscube.ais-gmbh.de
  12. X-Newsreader: TIN [version 1.2 PL2]
  13.  
  14. Scott Murman (smurman@shellx.best.com) wrote:
  15. > I've used g++ for my compiler.  I now have Sun's SC4.1 to use, but it
  16. > doesn't seem to have bool as a built-in data type.  What are some good
  17. > ways to deal with this?
  18.  
  19. As long as you don't need to overload on both bool and int, a
  20. `-Dbool=int -Dtrue=1 -Dfalse=0' will probably do it.
  21.  
  22. Arndt
  23. -- 
  24. Arndt Schoenewald (arndt@ais-gmbh.de)
  25. Ostenhellweg 31, 44135 Dortmund, Germany
  26. Tel: +49 231 554045
  27. Fax: +49 231 556049
  28.